#include <stdio.h>
#include <stdlib.h>
 
int main()
{
    FILE* ascll = fopen("ASC10x8.dic", "rb");
    char print[20], shujv[20][10] = { 0 };
    int i = 0, pianyi = 0, j = 0, k = 0;
 
    fgets(print, 20, stdin);
    while (print[i] != '\0')
    {
        pianyi = (print[i] - 0x20) * 10;
        fseek(ascll, pianyi, SEEK_SET);
        fread(shujv[i], 10, 1, ascll);
        i++;
    }
    int q = i-1;
    char shujv2[10][20];
    for (i = 0; i < 10; i++)
        for (j = 0; j < 20; j++) {
            shujv2[i][j] = shujv[j][i];
        }
 
    for (i = 0; i < 10; i++)
    {
        for (j = 0; j < q; j++)
        {
            for (k = 0; k < 8; k++)
            {
                if (shujv2[i][j] & (0x80 >> k))
                    printf("#");
                else
                {
                    printf(" ");
                }
            }
        }
        printf("\n");
    }
    return 0;
}

